package com.itbupt.eat.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itbupt.eat.dto.OrderDto;
import com.itbupt.eat.entity.Orders;

/**
 * @Author BUPT-Dingchang
 * @Create 2024/5/2 1:50
 * ClassName: IOrderService
 * Description:
 */


public interface IOrderService extends IService<Orders> {

    // 提交(添加)订单
    Boolean submit(Orders orders);

    // 获取订单分页展示
    Page<OrderDto> getPage(Long page, Long pageSize);

    // 后台管理端获取订单分页展示
    Page<OrderDto> getAllPage(Long page, Long pageSize, String number, String beginTime, String endTime);


    // 修改订单状态
    Boolean update(Orders order);


}
